//
//  Company.m
//  Contacts
//
//  Created by 武 娇 on 14-7-31.
//  Copyright (c) 2014年 李 雷川. All rights reserved.
//

#import "Company.h"
#import "CompanyDao.h"
@implementation Company
@synthesize ID,name,memberCount;
+(Company *)getCompany{
    CompanyDao *dao = [[CompanyDao alloc]init];
    Company *compnay =[dao getCompanyWithID:CompanyID];
    return compnay;
}

+(BOOL)saveCompany:(Company *)company{
    CompanyDao *companyDao =[[CompanyDao alloc]init];
   BOOL success = [companyDao insertCompany:company];
    return success;
}

+(BOOL)updateCompany:(Company *)company{
    CompanyDao *companyDao =[[CompanyDao alloc]init];
    BOOL success = [companyDao updateCompany:company];
    return success;
}
@end
